package com.rover.system.entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: 维
 * Date: 14-1-26
 * Time: 下午1:51
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "S_Permission")
@Cache(usage= CacheConcurrencyStrategy.READ_WRITE)
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private Integer permissionId;

    private String description;

    private String permission;

    private Integer parentPermId;

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public Integer getParentPermId() {
        return parentPermId;
    }

    public void setParentPermId(Integer parentPermId) {
        this.parentPermId = parentPermId;
    }
    
    
}
